package com.maple.sdk.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/indexController")
public class IndexController {
	
	@RequestMapping(params="index")
	public String index(){
		System.out.println("IndexController:Passing through...");
		return "/index";
	}
	@RequestMapping(params="findByUser")
	public String findByUser(HttpServletRequest request, ModelMap modelMap){
		String name = "limh";
		//modelMap.put("name",name);
		request.setAttribute("name", name);
		return "/second";
	}
}
